﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="BetSheetList.aspx.cs" Inherits="LotteryVote.BetSheetList" Culture="auto"
    meta:resourcekey="PageResource1" UICulture="auto" %>

<%@ Register Src="~/Controls/Pager.ascx" TagPrefix="LV" TagName="Pager" %>
<%@ Register Src="~/Controls/PlayWayDropDownList.ascx" TagPrefix="LV" TagName="PlayWay" %>
<asp:Content ID="Header" ContentPlaceHolderID="head" runat="server">
    <title>
        <%=GetLocalResourceObject("PageTitle")%></title>
    <link href="Style/Order.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="main" runat="server">
    <div class="sleectBar">
    </div>
    <div class="content">
        <asp:Repeater ID="rpt_betsheet" runat="server" OnItemCommand="rpt_betsheet_ItemCommand"
            OnItemDataBound="rpt_betsheet_ItemDataBound">
            <HeaderTemplate>
                <table cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <td>
                                <%=GetLocalResourceObject("SerialNumber")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("SheetNum")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("Name")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("UserName")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("Time")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("Num")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("Company")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("TurnOver")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("Commission")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("NetAmount")%>
                            </td>
                            <td>
                                <%=GetLocalResourceObject("Action")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr <%# Convert.ToInt32(Eval("Status"))==0?"class='cancel'":"" %>>
                    <td class='<%# Container.ItemIndex%2==0?"":"odd" %>'>
                        <%#Container.ItemIndex+1 %>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"odd":"even" %>'>
                        <%#Eval("SheetId")%>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"":"odd" %>'>
                        <%=CurrentUser.UserInfo.Name %>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"odd":"even" %>'>
                        <%=CurrentUser.UserName %>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"":"odd" %>'>
                        <%#Eval("CreateTime")%>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"odd":"even" %>'>
                        <%#Eval("Num")%>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"":"odd" %>'>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"odd":"even" %>'>
                        <%#Eval("Turnover")%>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"":"odd" %>'>
                        <%#Eval("Commission")%>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"odd":"even" %>'>
                        <%#Eval("NetAmount")%>
                    </td>
                    <td class='<%# Container.ItemIndex%2==0?"":"odd" %>'>
                        <a href='BetOrderList.aspx?sheet=<%#Eval("SheetId") %>'>
                            <%=GetLocalResourceObject("Detail") %></a>
                        <asp:LinkButton ID="lbtn_cancel" runat="server" Visible='<%#Eval("CanCancel") %>'
                            Text="<%$Resources:CancelButton %>" CommandName="cancel" CommandArgument='<%#Eval("SheetId") %>'></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr class="footer">
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:Literal ID="ltl_turnover" runat="server"></asp:Literal>
                    </td>
                    <td>
                        <asp:Literal ID="ltl_comm" runat="server"></asp:Literal>
                    </td>
                    <td>
                        <asp:Literal ID="ltl_netAmount" runat="server"></asp:Literal>
                    </td>
                    <td>
                    </td>
                </tr>
                </tbody></table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:HiddenField ID="hd_seach" runat="server" />
    </div>
    <LV:Pager ID="lv_pager" runat="server" Class="pagerGray" />
</asp:Content>
